package day0802;

import javax.swing.*;

//敌方大飞机类：
public class BigPlane extends FlyingObject {
    public void move(){
        y= y+speed;
    }

    BigPlane(){
        speed=1;
        ImageIcon iconImg=new ImageIcon("images/bee0.png");
        img=iconImg.getImage();//getImage方法：将ImageIcon转化为Image类型
        imgWidth=iconImg.getIconWidth();
        imgHeight=iconImg.getIconHeight();
        x=(int)(Math.random()*420-imgWidth/2);
        y=-30;
    }

}


